home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / dos / tools / libra.com / LIBRA.MAN < prev    next >
Encoding:
Text File  |  1988-12-05  |  15.2 KB  |  385 lines

  1.  
  2.  
  3.       
  4.       
  5.       
  6.       
  7.       
  8.       
  9.       
  10.       
  11.       
  12.       
  13.       
  14.       
  15.       
  16.       
  17.       
  18.       
  19.       
  20.       
  21.       
  22.       
  23.                                  L I B R A
  24.       
  25.                          Microsoft Librarian Shell
  26.       
  27.       
  28.                                  USER GUIDE
  29.       
  30.                               ────────────────
  31.       
  32.                                 Version 1.01
  33.                               1 December 1988
  34.       
  35.       
  36.       
  37.       
  38.       
  39.       
  40.       
  41.       
  42.       
  43.       
  44.       
  45.                       Copyright 1988 by  Herb Rose
  46.                           All Rights Reserved
  47.  
  48.  
  49.       
  50.       
  51.                        Disclaimer and Warranty Statement
  52.       
  53.           This software is provided "as is" without any warranty of any
  54.           kind, either expressed or implied, including, but not limited
  55.           to, the implied warranties of merchantability and fitness for
  56.           a particular purpose.  The entire risk as to the quality and
  57.           performance of the software is with you.  Should the software
  58.           prove defective, you (NOT ADEPT SOFTWARE) assume the entire
  59.           cost of all necessary servicing, repair, or correction.
  60.       
  61.           In no event shall Adept Software be liable to you for any
  62.           damages, including lost profits, lost savings or other
  63.           incidental or consequential damages arising out of the use or
  64.           inability to use this software even if Adept Software or it's
  65.           authorized representative has been advised of the possibility
  66.           of such damages, or for any claim by any other party.
  67.       
  68.       
  69.           Several trademarks and trade names appear in this manual, as
  70.           well as copyrighted names of programs.  These include
  71.           Microsoft, Intel, LIB, and MS-DOS.
  72.  
  73.  
  74.           
  75.       
  76.                               Table of Contents
  77.       
  78.           i.  Ordering Information . . . . . . . . . . . . . . . . 1
  79.       
  80.           1.  Introduction . . . . . . . . . . . . . . . . . . . . 2
  81.       
  82.           2.  Assumptions  . . . . . . . . . . . . . . . . . . . . 2
  83.       
  84.           3.  Running LIBRA. . . . . . . . . . . . . . . . . . . . 2
  85.       
  86.           4.  The LIBRA Display Screen . . . . . . . . . . . . . . 2
  87.       
  88.           5.  Module Names . . . . . . . . . . . . . . . . . . . . 3
  89.       
  90.           6.  PUBLIC Symbols . . . . . . . . . . . . . . . . . . . 3
  91.       
  92.           7.  EXTERNAL Symbols . . . . . . . . . . . . . . . . . . 3
  93.       
  94.           8.  Selecting Modules. . . . . . . . . . . . . . . . . . 3
  95.       
  96.           9.  Extract Modules. . . . . . . . . . . . . . . . . . . 4
  97.       
  98.           10. Delete Modules . . . . . . . . . . . . . . . . . . . 4
  99.       
  100.           11. Add Modules. . . . . . . . . . . . . . . . . . . . . 4
  101.       
  102.           12. Replace Modules. . . . . . . . . . . . . . . . . . . 4
  103.       
  104.           13. Extract and Delete Modules . . . . . . . . . . . . . 4
  105.       
  106.           14. Quitting . . . . . . . . . . . . . . . . . . . . . . 4
  107.       
  108.           15. Help Screen. . . . . . . . . . . . . . . . . . . . . 4
  109.       
  110.           16. Searching For Symbol Refernces . . . . . . . . . . . 4
  111.       
  112.           17. Other Display Fields . . . . . . . . . . . . . . . . 5
  113.       
  114.  
  115.  
  116.       LIBRA User Guide                                          Page 1
  117.       ──────────────────────────────────────────────────────────────────
  118.       
  119.       
  120.       
  121.       i. Ordering Information.
  122.       
  123.           This program is distributed as SHAREWARE.  Under this
  124.           distribution system, you are licensed to use this program for
  125.           the purpose of evaluating it.  You may legally make copies of
  126.           the program to distribute to your friends or place on BBS
  127.           systems, etc., provided the program and text files are not
  128.           modified in any way.
  129.       
  130.           This program is not, and has never been, in the Public Domain.
  131.           The copyright is held by Herb Rose, owner of Adept Software.
  132.           If you wish to continue using LIBRA after evaluating the
  133.           program and becoming familiar with it, you must purchase it
  134.           from Adept Software.
  135.       
  136.           Registration provides you with one year of technical support
  137.           from Adept Software, and reduced prices on future upgrades.
  138.       
  139.           Send to:   Adept Software
  140.                      P.O. Box 2181
  141.                      Woodbridge, Va.
  142.                               22193
  143.       
  144.           Name               ______________________________________
  145.       
  146.           Company Name       ______________________________________
  147.       
  148.           Address            ______________________________________
  149.       
  150.           City, State, Zip   ______________________________________
  151.       
  152.       
  153.           (  )LIBRA Registration . . . . . . . . . . . $20.00  ________
  154.       
  155.           (  )LIBRA Program Disk - Current Version*  . $ 4.00  ________
  156.               W/Registration Only
  157.                                                     Sub-Total  ________
  158.       
  159.               Virginia Residents add 4.5% sales tax            ________
  160.       
  161.       
  162.                                                         Total  ________
  163.       
  164.           * - Be sure to specify the version you are registering.  If there
  165.               is a newer version available, it will be sent immediatley,
  166.               otherwise, you will receive the next available release.
  167.  
  168.  
  169.       LIBRA User Guide                                          Page 2
  170.       ──────────────────────────────────────────────────────────────────
  171.       
  172.       
  173.                               LIBRA User Guide
  174.       
  175.       1. Introduction
  176.       
  177.           LIBRA is a user interface for the Microsoft LIB program.
  178.           Object libraries are an important programming tool, and this
  179.           program will make the task of managing your object libraries
  180.           easier and more enjoyable.  LIBRA will not take the place of
  181.           the LIB program provided with MS-DOS or your programming
  182.           language.  It is designed to work with LIB to make library
  183.           management easier.
  184.       
  185.           LIBRA will read object modules and object libraries in
  186.           Intel/Microsoft format. All Microsoft compilers and utilities
  187.           produce object modules in this format.  The LIB utility
  188.           combines these object modules into libraries.  LIBRA provides
  189.           a user interface to the LIB program that is both informative
  190.           and intuitive.
  191.       
  192.       2. Assumptions
  193.       
  194.           This utility is a programmer's tool.  It is assumed that the
  195.           concept of object modules, libraries, compilers, assemblers,
  196.           and linkers is familiar to you.   That being the case, you
  197.           will undoubtedly appreciate the greater control over your
  198.           libraries that LIBRA will provide.
  199.       
  200.           It is assumed that the LIB program is present in the current
  201.           directory, or in a directory listed in the current PATH.
  202.           LIBRA does not replace LIB, it simply enhances the user
  203.           interface to it.  LIB is called by LIBRA to perform all
  204.           library modifications.
  205.       
  206.       3. Running LIBRA
  207.       
  208.           From the DOS command prompt, type 'LIBRA [filename]', where
  209.           [filename] is the name of an object library in INTEL/Microsoft
  210.           format.  LIBRA will read the library file, and display
  211.           important information about each object module in the library.
  212.           If the library file cannot be read, or the file is not in the
  213.           correct format (i.e. not an Intel/Microsoft library file), an
  214.           error message will be displayed, and LIBRA will not run.
  215.       
  216.           LIBRA builds tables for each module which hold the names of
  217.           the PUBLIC and EXTERNAL symbols defined or used by the module.
  218.           If there is not enough memory available to hold these tables,
  219.           LIBRA will display the message 'Not enough memory', and will
  220.           not run.  This should not be a problem, as I have run LIBRA
  221.           against a 300K library file with a 512K PC.
  222.       
  223.       4. The LIBRA Display Screen
  224.       
  225.           On the top line of the display you will see the LIBRA version
  226.  
  227.  
  228.       LIBRA User Guide                                          Page 3
  229.       ──────────────────────────────────────────────────────────────────
  230.       
  231.           number, followed by the file name being viewed.  On the right
  232.           side of the screen you will see the size of the input file.
  233.       
  234.           The main portion of the display is composed of 4 text windows.
  235.           The largest window, on the left side of the screen, shows the
  236.           module names of all the object modules in the library.  A
  237.           reverse video bar is the LIBRA 'cursor'.  The module name
  238.           under the cursor is the 'current' module.
  239.       
  240.           In the center of the screen is a narrow window which shows the
  241.           size of the object modules.
  242.       
  243.           On the right side of the screen are 2 windows which display
  244.           symbols defined or used by the 'current' module.
  245.       
  246.       5. Module Names
  247.       
  248.           The large window on the left of the screen shows the names of
  249.           all the modules present in the library.  The Up Arrow and Down
  250.           Arrow are used to scroll this window one line at a time.  The
  251.           PageUp and PageDown keys are used to scroll the window 10
  252.           lines at a time.  The HOME key is used to set the cursor on
  253.           the first module name, and the END key places the cursor on
  254.           the last module name in the library.
  255.       
  256.       6. PUBLIC Symbols
  257.       
  258.           The upper window displays a list of PUBLIC symbols defined in
  259.           the current module.  These PUBLIC symbols are made known to
  260.           other object modules when the library is linked into an
  261.           application.  The F7 and F8 keys are used to scroll this
  262.           window up and down if more than 8 PUBLIC symbols are defined
  263.           by the module.
  264.       
  265.       7. EXTERNAL Symbols
  266.       
  267.           The lower window displays a list of EXTERNAL symbols
  268.           referenced by the current module.  The EXTERNAL refernces must
  269.           be resolved by the linker, using PUBLIC symbols defined by
  270.           other modules.  F9 and F10 are used to scroll this window up
  271.           and down, if more than 8 EXTERNAL symbols are referenced by
  272.           the current module.
  273.       
  274.       8. Selecting Modules
  275.       
  276.           LIBRA works on a 'selected' module scheme.  You select the
  277.           module or modules to be acted on, then choose an action for
  278.           the selected modules.  To select a module, position the cursor
  279.           on the module to be selected, and press ENTER.  The selected
  280.           module will be highlighted, and a marker will be shown in
  281.           front of the module name.  The cursor will automaticlly
  282.           advance to the next module name.  You may select as many
  283.           modules as you wish in this manner.
  284.       
  285.  
  286.  
  287.       LIBRA User Guide                                          Page 4
  288.       ──────────────────────────────────────────────────────────────────
  289.       
  290.           To un-select a module, position the cursor on the module name
  291.           to be un-selected, and press ENTER.  You may un-select all
  292.           selected modules by pressing the F3 key.
  293.       
  294.       9. Extract Modules
  295.       
  296.           Once you have selected one or more modules, you may extract
  297.           the modules by pressing the 'E' key.  Object files will be
  298.           created for each selected module.  The contents of the library
  299.           file are unaffected.
  300.       
  301.       10. Delete Modules
  302.       
  303.           Pressing the 'D' key will cause all selected modules to be
  304.           deleted from the library.  No object files are created.
  305.       
  306.       11. Add Modules
  307.       
  308.           It is not necessary to select any modules to perform an Add
  309.           operation.  Press the 'A' key, and you will be prompted for
  310.           the file name of an object file to Add to the library.  After
  311.           the object file has been added to the library, the library is
  312.           re-loaded into LIBRA's memory.
  313.       
  314.       12. Replace Modules
  315.       
  316.           When you press the 'R' key, all selected modules in the
  317.           library are replaced.  Replacement means that they are first
  318.           Deleted, then Added back into the library.  The object files
  319.           associated with the modules must reside in the current
  320.           directory. The library file is re-loaded when the Replace
  321.           function completes.
  322.       
  323.       13. Extract and Delete Modules
  324.       
  325.           Pressing the 'X' key will cause all selected modules to be
  326.           Extracted, then Deleted from the library.  The library file is
  327.           re-loaded when the the Extract and Delete function completes.
  328.       
  329.       14. Quitting
  330.       
  331.           Pressing the 'Q' key or the ESCape key will terminate LIBRA.
  332.           You will be asked if you really wish to quit the program.
  333.       
  334.       15. Help Screen
  335.       
  336.           Pressing the 'H' key will cause the LIBRA Help Screen to be
  337.           displayed.  This is a reminder screen, and does not contain
  338.           full operating instructions.
  339.       
  340.       16. Searching For Symbol Refernces
  341.       
  342.           You may search through the modules for references, both PUBLIC
  343.           and EXTERNAL to specific symbols.  To do this, simply press
  344.  
  345.  
  346.       LIBRA User Guide                                          Page 5
  347.       ──────────────────────────────────────────────────────────────────
  348.       
  349.           the F1 key.  You must supply the name of the symbol to search
  350.           for, and press F5 to accept the symbol and begin the search.
  351.           Limited editting capabilities are available for the symbol
  352.           entry, including DELETE, BACKSPACE, and INSERT.  F2 will clear
  353.           all characters from the cursor position ot the end of the
  354.           field.
  355.       
  356.           To abort the search operation, press ESCAPE.  The search
  357.           function will terminate, and return you to the LIBRA display
  358.           screen.
  359.       
  360.           The search starts at the current module.  If the symbol is
  361.           found, the module containing the symbol is made the current
  362.           module, and it is displayed on the screen.
  363.       
  364.           To continue searching for a previously defined symbol, press
  365.           the F2 key.  The search will begin at the module immediately
  366.           after the current module.
  367.       
  368.       17. Other Display Fields
  369.       
  370.           Below the windows you will find several peices of useful
  371.           information.  They are :
  372.       
  373.           Publics :  The number of PUBLIC symbols defined by the current
  374.                      module.
  375.       
  376.           Externs :  The number of EXTERNAL symbols referenced by the
  377.                      current module.
  378.       
  379.           Module 2 of 12 : Shows how many modules are defined in the
  380.                      library, and the number of the current module.
  381.       
  382.           n Modules Marked : Shows how many modules are currently
  383.                      selected.  See section 8 above.
  384.       
  385.